#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
    char op,yn;
    double a,b;
    int r;
    op=yn=a=b=0;
    note2:
        r = scanf("%lf %c %lf", &a, &op, &b);
        //printf("%d\n", r);

        if(r<1 || op=='5'){
            cout << "error" << endl;
            return 0;
        }

        switch(op) {
            case '+':
                printf("%.2f + %.2f = %.2f\n",a,b,a+b);
                goto note1;
            case '-':
                printf("%.2f - %.2f = %.2f\n",a,b,a-b);
                goto note1;
            case '*':
                printf("%.2f * %.2f = %.2f\n",a,b,a*b);
                goto note1;
            case '/':
                if(b==0) {
                    cout << "error" << endl;
                    return 0;
                }
                printf("%.2f / %.2f = %.2f\n",a,b,a/b);
                goto note1;
            case '%':
                cout << "error" << endl;
                return 0;
        }

    note1:
        scanf("\n%c", &yn);
        if(yn=='y') goto note2;
        if(yn=='n') return 0;
    return 0;
}
